package com.fyl.pattern.visitor;

public class Client {
    public static void main(String[] args) {
        Home home = new Home();
        home.addAnimal(new Cat());
        home.addAnimal(new Dog());

        //创建主人
        Owner owner = new Owner();
        home.action(owner);
    }
}
